<script setup>
import {useRoute, useRouter} from 'vue-router'
import {defineOptions, onMounted} from 'vue'

defineOptions({
  name: 'Redirect'
})
const route = useRoute()
const router = useRouter()
const {params, query} = route
const {path} = params
onMounted(() => {
  router.replace({path: '/' + path, query})
})
</script>
<template>
  <div>&nbsp;</div>
</template>
